#ifndef _MODEL_BI_
#define _MODEL_BI_


#include once "math/mathf.bi"
#include once "math/vecf.bi"

type triangle_struct
    point_id(1 to 3)    as uinteger
    uv(1 to 3)          as vec2f
    Visible             as integer
    col                 as uinteger
    normal              as vec3f
    tnormal             as vec3f
    Plane               as vec4f
    midpoint            as vec3f
    textured            as integer
end type

type model_struct
    max_vertices  as uinteger
    max_triangles as uinteger
    vertices      as vec3f ptr
    tvertices     as vec3f ptr
    pvertices     as vec3f ptr
    tnormals      as vec3f ptr
    triangles     as triangle_struct ptr
end type

declare sub Load_Obj( byval filename as string, byref Model as model_struct ptr )

#endif